﻿using Magicodes.ExporterAndImporter.Core;
using Magicodes.ExporterAndImporter.Excel;
using OfficeOpenXml.Table;
using System;
using System.Collections.Generic;
using System.Text;

namespace NP.BPMReportPlatform.GC.Dto
{
    /// <summary>
    /// 见单生产出参
    /// </summary>
    [ExcelExporter(Name = "报表数据", TableStyle = TableStyles.Light10, AutoFitAllColumn = true)]
    public class ExportJDSCOutput
    {
        /// <summary>
        /// 单据号
        /// </summary>
        [ExporterHeader(DisplayName = "单据号")]
        public string InstanceNumber { get; set; }

        /// <summary>
        /// 申请时间
        /// </summary>
        [ExporterHeader(DisplayName = "申请时间")]
        public DateTime? ProcessStartTime { get; set; }

        /// <summary>
        /// 申请人
        /// </summary>
        [ExporterHeader(DisplayName = "申请人")]
        public string ProcessStartUserName { get; set; }

        /// <summary>
        /// 单据详情链接
        /// </summary>
        [IEIgnore(IsExportIgnore = true)]
        public string Url { get; set; }


        /// <summary>
        /// 单据状态
        /// </summary>        
        [ExporterHeader(DisplayName = "单据状态")]
        public string OrderStatus { get; set; }

        /// <summary>
        /// 负责销售员
        /// </summary>
        [ExporterHeader(DisplayName = "负责销售员")]
        public string SalesalespersonUserName { get; set; }


        /// <summary>
        /// 客户编码
        /// </summary>
        [ExporterHeader(DisplayName = "客户编码")]
        public string CustomerCode { get; set; }


        /// <summary>
        /// 客户名称
        /// </summary>
        [ExporterHeader(DisplayName = "客户名称")]
        public string CustomerName { get; set; }

        /// <summary>
        /// 商机号
        /// </summary>
        [ExporterHeader(DisplayName = "商机号")]
        public string BusinessOpportunityNo { get; set; }

        /// <summary>
        /// 项目名称
        /// </summary>
        [ExporterHeader(DisplayName = "项目名称")]
        public string ProjectName { get; set; }


        /// <summary>
        /// 项目持续时间
        /// </summary>
        [ExporterHeader(DisplayName = "项目持续时间")]
        public string ProjectContinuTime { get; set; }


        /// <summary>
        /// 申请原因
        /// </summary>
        [ExporterHeader(DisplayName = "申请原因")]
        public string ApplyReason { get; set; }

        /// <summary>
        /// 物料名称
        /// </summary>
        [ExporterHeader(DisplayName = "物料名称")]
        public string MaterialName { get; set; }


        /// <summary>
        /// 色号
        /// </summary>
        [ExporterHeader(DisplayName = "色号")]
        public string ColorNumber { get; set; }


        /// <summary>
        /// 包装规格
        /// </summary>
        [ExporterHeader(DisplayName = "包装规格")]
        public string PackSpecifications { get; set; }


        /// <summary>
        /// 数量
        /// </summary>
        [ExporterHeader(DisplayName = "数量")]
        public string Quantity { get; set; }
    }
}
